package com.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author WZ
 * @version 1.0
 * @date 2021/8/23 10:11
 */
@Mapper
public interface LoginDao extends BaseMapper<TalkUser> {

  public List<Login> login(String account);
   public List<User> findUser(String account);
   public List<UserRole> findRole(String userId);
   public List<UserRole> AllRole();

    List<String> getMemberAccessType(String id);

    int addUser(TalkUser talkUser);

    Integer findUserKiaraId(@Param("userId") Integer userId);
}
